package com.xbongbong.saas.model;

import com.xbongbong.saas.domain.entity.DingRobotManageEntity;
import com.xbongbong.paas.toolbox.wrap.IModel;

import java.util.List;

/**
 * @author chenshan
 * @version v1.0
 * @since 2019-08-16 10:49
 */
public interface DingRobotManageModel extends IModel<DingRobotManageEntity> {
    
    public void insertBatch(List<DingRobotManageEntity> dingRobotManageList);
    
    DingRobotManageEntity findEntity( String openConversationId,String alias, String corpid);
    
    public Integer save(DingRobotManageEntity entity);

    public DingRobotManageEntity getEntity(Long id, String corpid);

    public Integer deleteByIds(List<Long> ids, String corpid);

    public DingRobotManageEntity getByAlias(String alias, Long bundleId);
    
    Integer deleteByOpenConversationId(String openConversationId, String corpid);
    
}